import util from '@/utils/request';

export const loginReq = data => util.request({
    url: '/app/v1_0/authorizations',
    method: 'post',
    data
});
/**
 *  发送手机短信验证码的方法
*/
export const sendSms = mobile => util.request({
    url: `/app/v1_0/sms/codes/${mobile}`,
    method: 'get'
});

export const userReq = () => util.request({
    url: '/app/v1_0/users/1',
    method: 'get'
});
